<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>事件修饰符</title>
    <script src="js/vue.js"></script>
    <script>
        window.onload = function () {
            new Vue({
                el: '#itany',
                methods: {
                    print() {
                        console.log("1111");
                    }
                }
            });
        }
    </script>
</head>
<body>
<div id="itany">
    <button @click.once="print">只触发一次</button>
</div>
</body>
</html>